﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Money.Plugins
{
    public class FilterEventArgs : EventArgs
    {
        private DateTime _startDate;
        private DateTime _endDate;
        private string _categoryGroup;
        private string _category;
        private string _account;

        public FilterEventArgs(DateTime startDate, DateTime endDate, string categoryGroup = null, string category = null, string account = null)
        {
            _startDate = startDate;
            _endDate = endDate;
            _categoryGroup = categoryGroup;
            _category = category;
            _account = account;
        }

        public FilterEventArgs()
        {
            _startDate = new DateTime(1980, 1, 1);
            _endDate = new DateTime(2200, 1, 1);
            _categoryGroup = null;
            _category = null;
            _account = null;
        }

        public DateTime StartDate { get { return _startDate; } }
        public DateTime EndDate { get { return _endDate; } }
        public string CategoryGroup { get { return _categoryGroup; } }
        public string Category { get { return _category; } }
        public string Account { get { return _account; } }
    }
}
